package com.hx.vending.service;

import com.hx.vending.bean.Menu;
import com.hx.vending.bean.entity.MenuVO;
import com.hx.vending.util.Msg;

import java.util.List;

/**
 * Created by Administrator on 2019/1/2.
 */
public interface IMenuService {

    int insertMenu(Menu menu);

    int updateByPrimaryKey(Menu menu);

    List<Menu> selectByExample(Menu menu);

    Msg delMenuContainSubMenus(String menuIds);

    /**
     * 删除菜单
     *
     */
    Integer delMenu(Integer menuId);

    Menu selectByPrimaryKey(Menu menu);

    List<MenuVO> selectVoByExample(String menuName,Integer[] menus);

    Integer[] selectMenuByRole(Integer[] roleList);

    Integer[] selectMenu();
}
